#pragma once
#include "plane.h"

//axis aligned

class PlanePart :
	public Plane
{
private:
	bool x,y,z;
	Vector3d start,end;
public:
	PlanePart(){};
	PlanePart(Vector3d pos,Vector3d norm,Vector3d plane_start,Vector3d plane_end,bool ix,bool iy,bool iz);
	TraceResult collision(const Ray &ray);
	~PlanePart(void);
	friend class Cube;
};

